<?PHP
ob_start();
include("common/connection.php");
$uid=$_POST['uid'];
$status=$_POST['status'];

if($uid!='')
{	
$addUser="UPDATE `users` SET `group`='".$_POST['group']."',`batch`='".$_POST['batch']."',`gender`='".$_POST['gender']."',`f_name`='".$_POST['full_name']."',`n_name`='".$_POST['nick_name']."',`cell_num`='".$_POST['cell_phone']."',`email`='".$_POST['email']."',`address`='".$_POST['address']."',`amount`='".$_POST['amount']."',`spouse`='".$_POST['spouse']."',`verify`='".$_POST['origin']."',`status`='$status' WHERE `id`=$uid";
$resultUser=mysql_db_query($db_name,$addUser);

	if($resultUser)
		{
		  header("Location: containeradmin.php?area=user&action=update_user&uid=$uid&mess=1");
		}
}
else
{
	header("Location: containeradmin.php?area=user&action=update_user&uid=$uid&mess=2");
}
?>
